'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/pay/callback', controller.alipay.callback);
  router.post('/pay/notify', controller.alipay.notify);
  router.get('/pay/:id', controller.alipay.pay);
  router.post('/confirm', controller.confirm.confirm);
  router.get('/orders/refresh/:id', controller.alipay.refresh);
  router.get('/orders/:id', controller.alipay.show);
};
